package com.zkyc.framework.file.client;

import com.zkyc.framework.common.constant.Constant;
import com.zkyc.framework.common.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author bing.bai
 * @create 2022/5/27
 */
@Service
@FeignClient(value = Constant.SERVICE_USER, contextId = "userService", fallback = UserServiceFallBack.class)
public interface UserClient {

    @GetMapping("/queryById")
    ResultVO<?> getUserById(@RequestParam("id") String id);

    /**
     * 判断用户是否为管理员用户
     *
     * @param websiteId
     * @return
     */
    @GetMapping("judgeRightExist")
    public ResultVO judgeRightExist(@RequestParam Integer  websiteId,@RequestParam String userId);
}
